package ar.Location.PlaceApi;

import ar.Location.Api.Eventful.EventfulAPI;
import ar.Location.Api.Flickr.FlickrAPI;
import ar.Location.Api.Foursquare.FoursquareAPI;
import ar.Location.Api.GooglePlace.GooglePlaceAPI;
import ar.Location.Api.Wikipedia.WikipediaAPI;


public class ApiManager {
	private static AbsAPI googlePlaceAPI = null;
	private static AbsAPI foursquareAPI = null;
	private static AbsAPI wikipediaAPI = null;
	private static AbsAPI eventfulAPI = null;
	private static AbsAPI flickrAPI = null;
	
	public static AbsAPI googlePlaceApiInstance() {
		if(googlePlaceAPI == null) {
			googlePlaceAPI = new GooglePlaceAPI();
		}
		return googlePlaceAPI;
	}
	public static AbsAPI foursquareApiInstance() {
		if(foursquareAPI == null) {
			foursquareAPI = new FoursquareAPI();
		}
		return foursquareAPI;
	}
	public static AbsAPI wikipediaApiInstance() {
		if(wikipediaAPI == null) {
			wikipediaAPI = new WikipediaAPI();
		}
		return wikipediaAPI;
	}
	public static AbsAPI eventfulApiInstance() {
		if(eventfulAPI == null) {
			eventfulAPI = new EventfulAPI();
		}
		return eventfulAPI;
	}
	public static AbsAPI flickrApiInstance() {
		if(flickrAPI == null) {
			flickrAPI = new FlickrAPI();
		}
		return flickrAPI;
	}
	
}
